package com.me.jingdongshop.dagger2.module;

import com.me.common.base.BaseView;
import com.me.jingdongshop.presenter.HomeFragmentPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by wuer on 2017/5/5/005.
 */
@Module
public class HomeFragmentModule {
    private BaseView mBaseView;
    public HomeFragmentModule(BaseView baseView){
        this.mBaseView = baseView;
    }
    @Provides
    public BaseView providerView(){
        return mBaseView;
    }

    @Provides
    public HomeFragmentPresenter providerPresenter(BaseView baseView){
        return new HomeFragmentPresenter(baseView);
    }
}
